<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>uCXpresso.BLE: CI2CMaster Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../upnp.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">uCXpresso.BLE
   &#160;<span id="projectnumber">v1.0.4</span>
   </div>
   <div id="projectbrief">RTOS C++ Framework for Bluetooth Low Energy</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d7/db9/class_c_i2_c_master.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d4/d55/class_c_i2_c_master-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">CI2CMaster Class Reference<div class="ingroups"><a class="el" href="../../d1/d6c/group___peripherals.html">Peripherals</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &quot;<a class="el" href="../../d5/daf/i2c_8h_source.html">class/i2c.h</a>&quot;</code></p>
<div class="dynheader">
Inheritance diagram for CI2CMaster:</div>
<div class="dyncontent">
 <div class="center">
  <img src="../../d7/db9/class_c_i2_c_master.png" usemap="#CI2CMaster_map" alt=""/>
  <map id="CI2CMaster_map" name="CI2CMaster_map">
<area href="../../d0/dce/class_c_i2_c.html" alt="CI2C" shape="rect" coords="0,112,80,136"/>
<area href="../../d9/db6/class_c_peripheral.html" alt="CPeripheral" shape="rect" coords="0,56,80,80"/>
<area href="../../dc/dac/class_c_object.html" alt="CObject" shape="rect" coords="0,0,80,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a328c3687134f58450d5a0ea571a0cc0f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a328c3687134f58450d5a0ea571a0cc0f">readBit</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a328c3687134f58450d5a0ea571a0cc0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecc2f84c5b45224112ae27e70e1f8364"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#aecc2f84c5b45224112ae27e70e1f8364">readBitW</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t *data, uint16_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:aecc2f84c5b45224112ae27e70e1f8364"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a48f98174a56312ff9432a505a04449bb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a48f98174a56312ff9432a505a04449bb">readBits</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a48f98174a56312ff9432a505a04449bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc8810c7c72f4cb57e77cd8073465bb8"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#afc8810c7c72f4cb57e77cd8073465bb8">readBitsW</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:afc8810c7c72f4cb57e77cd8073465bb8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a748148275878f4899f2b3f588e823e0b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a748148275878f4899f2b3f588e823e0b">readByte</a> (uint8_t devAddr, uint8_t regAddr, uint8_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a748148275878f4899f2b3f588e823e0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a793f53f202ebaa6da62e54d804423e4c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a793f53f202ebaa6da62e54d804423e4c">readWord</a> (uint8_t devAddr, uint8_t regAddr, uint16_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a793f53f202ebaa6da62e54d804423e4c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05b98ae4964e3be1b858c1573cc1f445"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a05b98ae4964e3be1b858c1573cc1f445">readBytes</a> (uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a05b98ae4964e3be1b858c1573cc1f445"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a895ef8992b4bdffb85e391d16fac5e5d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a895ef8992b4bdffb85e391d16fac5e5d">readWords</a> (uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a895ef8992b4bdffb85e391d16fac5e5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad080989288fe1503a68a97ca0d78f9bd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#ad080989288fe1503a68a97ca0d78f9bd">writeBit</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint8_t value)</td></tr>
<tr class="separator:ad080989288fe1503a68a97ca0d78f9bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b41665816fe8de9e6a564a8044df52e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a1b41665816fe8de9e6a564a8044df52e">writeBitW</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitNum, uint16_t data)</td></tr>
<tr class="separator:a1b41665816fe8de9e6a564a8044df52e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab97767680e94cc9d12dc45e44f8c87ce"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#ab97767680e94cc9d12dc45e44f8c87ce">writeBits</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint8_t data)</td></tr>
<tr class="separator:ab97767680e94cc9d12dc45e44f8c87ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0ff5998b5ae3416e6e271213f6b2c09"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#ab0ff5998b5ae3416e6e271213f6b2c09">writeBitsW</a> (uint8_t devAddr, uint8_t regAddr, uint8_t bitStart, uint8_t length, uint16_t data)</td></tr>
<tr class="separator:ab0ff5998b5ae3416e6e271213f6b2c09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae919bbeb27f1c3e3d791d8972a498c66"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#ae919bbeb27f1c3e3d791d8972a498c66">writeByte</a> (uint8_t devAddr, uint8_t regAddr, uint8_t data)</td></tr>
<tr class="separator:ae919bbeb27f1c3e3d791d8972a498c66"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aade1859abec8ba59c8536e86dde0b74b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#aade1859abec8ba59c8536e86dde0b74b">writeWord</a> (uint8_t devAddr, uint8_t regAddr, uint16_t data)</td></tr>
<tr class="separator:aade1859abec8ba59c8536e86dde0b74b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0e667cdc2f19401ce0d869482511e79"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#ac0e667cdc2f19401ce0d869482511e79">writeBytes</a> (uint8_t devAddr, uint8_t regAddr, uint8_t length, uint8_t *data)</td></tr>
<tr class="separator:ac0e667cdc2f19401ce0d869482511e79"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a97dc3cfe78647f383ad2f8f2545034da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d7/db9/class_c_i2_c_master.html#a97dc3cfe78647f383ad2f8f2545034da">writeWords</a> (uint8_t devAddr, uint8_t regAddr, uint8_t length, uint16_t *data)</td></tr>
<tr class="separator:a97dc3cfe78647f383ad2f8f2545034da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeff3f958457f68d453fe125b031c4539"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/class_c_i2_c.html#aeff3f958457f68d453fe125b031c4539">enable</a> ()</td></tr>
<tr class="separator:aeff3f958457f68d453fe125b031c4539"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a36a89b063ac68ff1710193258e76ea73"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/class_c_i2_c.html#a36a89b063ac68ff1710193258e76ea73">disable</a> ()</td></tr>
<tr class="separator:a36a89b063ac68ff1710193258e76ea73"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5158b0fe99495c186200ac1d6ef4e52"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/class_c_i2_c.html#ab5158b0fe99495c186200ac1d6ef4e52">frequency</a> (uint32_t hz)</td></tr>
<tr class="separator:ab5158b0fe99495c186200ac1d6ef4e52"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f05058db3c41dec6abf7edef55c4024"><td class="memItemLeft" align="right" valign="top"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d0/dce/class_c_i2_c.html#a7f05058db3c41dec6abf7edef55c4024">readwrite</a> (void *txbuf, int txsize, void *rxbuf, int rxsize, uint32_t timeout=DEF_I2C_TIMEOUT)</td></tr>
<tr class="separator:a7f05058db3c41dec6abf7edef55c4024"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../dc/dac/class_c_object.html#a26a76c241a4d62d2efdac57d2cfe4c0f">isThread</a> ()</td></tr>
<tr class="separator:a26a76c241a4d62d2efdac57d2cfe4c0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The I2CMaster class provides the i2c interface and compatibility of i2cdevlib/i2cdev class. </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/dd4/_2peripheral_2i2c_scanner_2src_2main_8cpp-example.html#_a11">/peripheral/i2c_scanner/src/main.cpp</a>.</dd>
</dl></div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a36a89b063ac68ff1710193258e76ea73"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CI2C::disable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Disable I2C interface </p>

</div>
</div>
<a class="anchor" id="aeff3f958457f68d453fe125b031c4539"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CI2C::enable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Enable I2C interface </p>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/dd4/_2peripheral_2i2c_scanner_2src_2main_8cpp-example.html#a12">/peripheral/i2c_scanner/src/main.cpp</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="ab5158b0fe99495c186200ac1d6ef4e52"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CI2C::frequency </td>
          <td>(</td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>hz</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Set I2C frequency </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">hz</td><td>a unsigned long to indicate the frequency of I2C. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a26a76c241a4d62d2efdac57d2cfe4c0f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual bool CObject::isThread </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">virtual</span><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Check current object that inherits from <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class or not. </p>
<dl class="section note"><dt>Note</dt><dd>The isTherad() will be override by <a class="el" href="../../d0/d26/class_c_thread.html">CThread</a> class. </dd></dl>

<p>Reimplemented in <a class="el" href="../../d0/d26/class_c_thread.html#ab2513fd0fcad30e2e6605609c91f1984">CThread</a>.</p>

</div>
</div>
<a class="anchor" id="a328c3687134f58450d5a0ea571a0cc0f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readBit </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read a single bit from an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">bitNum</td><td>Bit position to read (0-7) </td></tr>
    <tr><td class="paramname">data</td><td>Container for single bit value </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a48f98174a56312ff9432a505a04449bb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readBits </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read multiple bits from an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">bitStart</td><td>First bit position to read (0-7) </td></tr>
    <tr><td class="paramname">length</td><td>Number of bits to read (not more than 8) </td></tr>
    <tr><td class="paramname">data</td><td>Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="afc8810c7c72f4cb57e77cd8073465bb8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readBitsW </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read multiple bits from a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">bitStart</td><td>First bit position to read (0-15) </td></tr>
    <tr><td class="paramname">length</td><td>Number of bits to read (not more than 16) </td></tr>
    <tr><td class="paramname">data</td><td>Container for right-aligned value (i.e. '101' read from any bitStart position will equal 0x05) </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="aecc2f84c5b45224112ae27e70e1f8364"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readBitW </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read a single bit from a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">bitNum</td><td>Bit position to read (0-15) </td></tr>
    <tr><td class="paramname">data</td><td>Container for single bit value </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a748148275878f4899f2b3f588e823e0b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readByte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read single byte from an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">data</td><td>Container for byte value read from device </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="../../df/dd4/_2peripheral_2i2c_scanner_2src_2main_8cpp-example.html#a13">/peripheral/i2c_scanner/src/main.cpp</a>.</dd>
</dl>
</div>
</div>
<a class="anchor" id="a05b98ae4964e3be1b858c1573cc1f445"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readBytes </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read multiple bytes from an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>First register regAddr to read from </td></tr>
    <tr><td class="paramname">length</td><td>Number of bytes to read </td></tr>
    <tr><td class="paramname">data</td><td>Buffer to store read data in </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a793f53f202ebaa6da62e54d804423e4c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readWord </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read single word from a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to read from </td></tr>
    <tr><td class="paramname">data</td><td>Container for word value read from device </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a895ef8992b4bdffb85e391d16fac5e5d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::readWords </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Read multiple words from a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>First register regAddr to read from </td></tr>
    <tr><td class="paramname">length</td><td>Number of words to read </td></tr>
    <tr><td class="paramname">data</td><td>Buffer to store read data in </td></tr>
    <tr><td class="paramname">timeout</td><td>Optional read timeout in milliseconds (0 to disable, leave off to use default class value in I2Cdev::readTimeout) </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a7f05058db3c41dec6abf7edef55c4024"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2C::readwrite </td>
          <td>(</td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>txbuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>txsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>rxbuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>rxsize</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint32_t&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>DEF_I2C_TIMEOUT</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inherited</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>start read &amp; write engine </p>

</div>
</div>
<a class="anchor" id="ad080989288fe1503a68a97ca0d78f9bd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeBit </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>write a single bit in an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to write to </td></tr>
    <tr><td class="paramname">bitNum</td><td>Bit position to write (0-7) </td></tr>
    <tr><td class="paramname">value</td><td>New bit value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of read operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="ab97767680e94cc9d12dc45e44f8c87ce"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeBits </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write multiple bits in an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to write to </td></tr>
    <tr><td class="paramname">bitStart</td><td>First bit position to write (0-7) </td></tr>
    <tr><td class="paramname">length</td><td>Number of bits to write (not more than 8) </td></tr>
    <tr><td class="paramname">data</td><td>Right-aligned value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="ab0ff5998b5ae3416e6e271213f6b2c09"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeBitsW </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitStart</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write multiple bits in a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to write to </td></tr>
    <tr><td class="paramname">bitStart</td><td>First bit position to write (0-15) </td></tr>
    <tr><td class="paramname">length</td><td>Number of bits to write (not more than 16) </td></tr>
    <tr><td class="paramname">data</td><td>Right-aligned value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a1b41665816fe8de9e6a564a8044df52e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeBitW </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>bitNum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>write a single bit in a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register regAddr to write to </td></tr>
    <tr><td class="paramname">bitNum</td><td>Bit position to write (0-15) </td></tr>
    <tr><td class="paramname">value</td><td>New bit value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="ae919bbeb27f1c3e3d791d8972a498c66"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeByte </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write single byte to an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register address to write to </td></tr>
    <tr><td class="paramname">data</td><td>New byte value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="ac0e667cdc2f19401ce0d869482511e79"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeBytes </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write multiple bytes to an 8-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>First register address to write to </td></tr>
    <tr><td class="paramname">length</td><td>Number of bytes to write </td></tr>
    <tr><td class="paramname">data</td><td>Buffer to copy new data from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="aade1859abec8ba59c8536e86dde0b74b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeWord </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write single word to a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>Register address to write to </td></tr>
    <tr><td class="paramname">data</td><td>New word value to write </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
<a class="anchor" id="a97dc3cfe78647f383ad2f8f2545034da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="../../db/dff/group___enumerations.html#gae2de52b3324336037756b7c011706177">I2C_ERROR_T</a> CI2CMaster::writeWords </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>devAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>regAddr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">uint16_t *&#160;</td>
          <td class="paramname"><em>data</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Write multiple words to a 16-bit device register. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">devAddr</td><td>I2C slave device address </td></tr>
    <tr><td class="paramname">regAddr</td><td>First register address to write to </td></tr>
    <tr><td class="paramname">length</td><td>Number of words to write </td></tr>
    <tr><td class="paramname">data</td><td>Buffer to copy new data from </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>Status of operation (I2C_OK = success) </dd></dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d7/db9/class_c_i2_c_master.html">CI2CMaster</a></li>
    <li class="footer">Generated on Fri Apr 11 2014 23:43:26 for uCXpresso.BLE by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.6 </li>
  </ul>
</div>
</body>
</html>
